import $service from '../../../../service.js';
var hospital_id="1";
var that;
var log_id;
var doctor_id;
Page({
    data:{
       active : true,
       inquiryMap:''
    },
    onLoad(e){
        log_id = e.log_id
    },
    onShow(){
        that = this.data;
        this.publicUtil_getInquiryLogDetails()
    },
    //数据
    publicUtil_getInquiryLogDetails:function(){
        var jsonData ={
            "is_receive":"1",
            "log_id" : log_id
        }
        var jsonAjax = {
            "url": "publicUtil_getInquiryLogDetails.do",
            "jsonData": jsonData,
        }
        $service.getAjaxData(jsonAjax, this.publicUtil_getInquiryLogDetails_back);
    },
    //回调
    publicUtil_getInquiryLogDetails_back: function(jsonBack){
         var data=$service.strToJson(jsonBack.data).data;
         var inquiryMap= data.inquiryMap; //患者信息
         var doctorMap = data.doctorMap; //医生信息
         this.setData({
             inquiryMap : inquiryMap
         })
    },
    lookdetalis(){
        $service.openPage('index_medicalrecord_detalis/index_medicalrecord_detalis?inquiry_patient_id=' + that.inquiryMap.inquiry_patient_id)
    }
})